package com.nnnu.wsnackshop.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Set;

@Data
@Schema(description = "用户详情 VO")
public class AdminUserVO {
    @Schema(description = "用户ID") private Long id;
    @Schema(description = "用户名") private String username;
    @Schema(description = "昵称") private String nickname;
    @Schema(description = "手机号") private String phone;
    @Schema(description = "邮箱") private String email;
    @Schema(description = "头像") private String avatar;
    @Schema(description = "角色名称列表") private Set<String> roles;
    @Schema(description = "创建时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private String createdAt;
    @Schema(description = "更新时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private String updatedAt;
}
